<?php
//json字符串输出
function json_out( $ret = FALSE, $is_echo = TRUE ) {
    $out = json_encode($ret,JSON_UNESCAPED_UNICODE);
    if( $is_echo ) {
        ob_clean();
        header('Content-type:application/json;charset=utf-8');
        echo $out;
    }
    return $out;
}
function json_my_decode( $json, $assoc = true, $depth = 512, $options = 0 ) {
	$ret = false;
	try {
		$ret = json_decode($json, $assoc, $depth, $options);
	} catch ( Exception $e ) {
	}
	return $ret;
}
